<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="/jsp/inc/header.jsp" %>
<c:set var="title" value="抵押车业务"/>
<c:set var="rootpath" value="${CONTEXT_PATH}/admin/product/carBusinessPledge/"/>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="${STATIC_HOST}/css/ligerui.css" rel="stylesheet" type="text/css"/>
    <link href="${STATIC_HOST}/css/common.css" rel="stylesheet" type="text/css" />
    <script src="${STATIC_HOST}/js/common.js" type="text/javascript"></script>
    <script src="${STATIC_HOST}/js/LG.js" type="text/javascript"></script>
	<script src="${STATIC_HOST}/js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <title>${title}管理</title>
</head>
<body>
<form:form commandName="carBusinessPledge" class="l-form" id="mainform" name="mainform" method="post" action="${rootpath}/save.do">
  <div class="l-group l-group-hasicon"><img src="${STATIC_HOST}/images/common/communication.gif"><span>当前位置: 宇宙CMS &gt; <a href="${rootpath}/list.do">${title}管理</a> &gt; ${carBusinessPledge.id==0 ? '新增' : '修改'}${title}</span></div>
    <div id="errorLabelContainer"> <form:errors path="*"/></div>
        <input type="hidden" name="queryParam" value="${queryParam}"/>
		<input type="hidden" name="id" id="id" value="${carBusinessPledge.id}"/>
		
      <ul>
		  <li class="li_show_left" style="padding-left:30px;"><label for="carId">车库ID</label> <span style="color:red">*</span>:</li>
			   <li class="li_show_right">
			<input type="text" name="carId" id="carId" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${carBusinessPledge.carId}"/>
		   <input value="..." type="button" class="l-button ellipsis"  onclick="f_select({'targetId':'carId','selectType':'/admin/product/car/'})">
		   <span class='formValidatorError'><form:errors path="carId" /></span>
		  </li>
      </ul><!--换行-->
      <ul>
		  <li class="li_show_left" style="padding-left:30px;"><label for="totalPrice">参考总价</label> <span style="color:red">*</span>:</li>
			   <li class="li_show_right">
			<input type="text" name="totalPrice" id="totalPrice" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${carBusinessPledge.totalPrice}"/>
		   <span class='formValidatorError'><form:errors path="totalPrice" /></span>
		  </li>
      </ul><!--换行-->
      <ul>
		  <li class="li_show_left" style="padding-left:30px;"><label for="secondPrice">二手价</label> <span style="color:red">*</span>:</li>
			   <li class="li_show_right">
			<input type="text" name="secondPrice" id="secondPrice" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${carBusinessPledge.secondPrice}"/>
		   <span class='formValidatorError'><form:errors path="secondPrice" /></span>
		  </li>
      </ul><!--换行-->
      <ul>
		  <li class="li_show_left" style="padding-left:30px;"><label for="minPrice">售价范围</label> <span style="color:red">*</span>:</li>
		  <li class="li_show_right">
			  <input type="text" name="minPrice" id="minPrice" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${carBusinessPledge.minPrice}"/>
			  &nbsp;&nbsp;至&nbsp;&nbsp;
		  </li>
		  <li class="li_show_right">
			  <input type="text" name="maxPrice" id="maxPrice" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${carBusinessPledge.maxPrice}"/>（单位：万元）
		  </li>
      </ul><!--换行-->
	<ul>
		<li class="li_show_left" style="padding-left:30px;"><label for="odoMeter">里程数</label> <span style="color:red">*</span>:</li>
		<li class="li_show_right">
			<input type="text" name="odoMeter" id="odoMeter" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${carBusinessPledge.odoMeter}"/>
			<span class='formValidatorError'><form:errors path="odoMeter" /></span>
		</li>
	</ul><!--换行-->
      <ul>
		  <li class="li_show_left" style="padding-left:30px;"><label for="dateOnBoard">上牌日期</label> <span style="color:red">*</span>:</li>
			   <li class="li_show_right">
		   	<input id="dateOnBoard" name="dateOnBoard" type="text" value="<fmt:formatDate value='${carBusinessPledge.dateOnBoard}' pattern='yyyy-MM-dd' />" size="10" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
		   <span class='formValidatorError'><form:errors path="dateOnBoard" /></span>
		  </li>
		<li class="li_show_left" style="padding-left:30px;"><label for="areaOnBoard">上牌地</label> <span style="color:red">*</span>:</li>
		<li class="li_show_right">
			<input type="text" name="areaOnBoard" id="areaOnBoard" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${carBusinessPledge.areaOnBoard}"/>
			<span class='formValidatorError'><form:errors path="areaOnBoard" /></span>
		</li>
	</ul><!--换行-->
      <ul>
		  <li class="li_show_left" style="padding-left:30px;"><label for="paymentType">付款方式</label> <span style="color:red">*</span>:</li>
			   <li class="li_show_right">
			   <select name="paymentType" id="paymentType" ltype="select" size="1" >
				   <c:forEach var="obj" items="${paymentTypeMap}" varStatus="idx">
					   <option value="${obj.key}" <c:if test="${carBusinessPledge.paymentType==obj.key}">selected</c:if>>${obj.value}</option>
				   </c:forEach>
			   </select>
		  </li>
		<li class="li_show_left" style="padding-left:30px;"><label for="downPayment">首付款</label> <span style="color:red">*</span>:</li>
		<li class="li_show_right">
			<input type="text" name="downPayment" id="downPayment" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${carBusinessPledge.downPayment}"/>
			<span class='formValidatorError'><form:errors path="downPayment" /></span>
		</li>
	</ul><!--换行-->
      <ul>
		  <li class="li_show_left" style="padding-left:30px;"><label for="monthPay12">12期月供款</label> <span style="color:red">*</span>:</li>
			   <li class="li_show_right">
			<input type="text" name="monthPay12" id="monthPay12" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${carBusinessPledge.monthPay12}"/>
		   <span class='formValidatorError'><form:errors path="monthPay12" /></span>
		  </li>
      </ul><!--换行-->
      <ul>
		  <li class="li_show_left" style="padding-left:30px;"><label for="monthPay24">24期月供款</label> <span style="color:red">*</span>:</li>
			   <li class="li_show_right">
			<input type="text" name="monthPay24" id="monthPay24" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${carBusinessPledge.monthPay24}"/>
		   <span class='formValidatorError'><form:errors path="monthPay24" /></span>
		  </li>
      </ul><!--换行-->
      <ul>
		  <li class="li_show_left" style="padding-left:30px;"><label for="monthPay36">36期月供款</label> <span style="color:red">*</span>:</li>
			   <li class="li_show_right">
			<input type="text" name="monthPay36" id="monthPay36" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${carBusinessPledge.monthPay36}"/>
		   <span class='formValidatorError'><form:errors path="monthPay36" /></span>
		  </li>
      </ul><!--换行-->
      <ul>
		  <li class="li_show_left" style="padding-left:30px;"><label for="status">状态</label> <span style="color:red">*</span>:</li>
		  <li class="li_show_right">
			  <select name="status" id="status" ltype="select" size="1" >
				  <c:forEach var="obj" items="${statusMap}" varStatus="idx">
					  <option value="${obj.key}" <c:if test="${carBusinessPledge.status==obj.key}">selected</c:if>>${obj.value}</option>
				  </c:forEach>
			  </select>
		  </li>
      </ul><!--换行-->
      <ul>
		  <li class="li_show_left" style="padding-left:30px;"><label for="memo">备注</label> <span style="color:red">*</span>:</li>
			   <li class="li_show_right">
		   <textarea name="memo" id="memo" rows="3" cols="80" class="l-textarea" validate="{minlength:0,maxlength:420}">${carBusinessPledge.memo}</textarea>
		   <span class='formValidatorError'><form:errors path="memo" /></span>
		  </li>
      </ul><!--换行-->

  <div class="l-group l-group-hasicon"></div> 
  <input type="submit" value="提交" id="mainformsubmit" class="l-button l-button-submit form_submit_button"/> 
  <c:if test="${fn:contains(header.referer,rootpath)}"><input type="button" value="返回" class="l-button l-button-test" style="float:left;" onClick="location.href='${header.referer}'" /></c:if>
</form:form>
<script type="text/javascript" >
var mainform = $("#mainform");
mainform.ligerForm();

</script>
<div id="scrolltop">返回顶部</div>
<%@ include file="/jsp/inc/footer.jsp"%>
</body>
</html>